﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FamilySearchDataSubject.aspx.cs" Inherits="ES_Project.Pages.FamilySearchDataSubject" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        table{font-size:11pt;
margin-top: 0px;
    color: #000000;
}
TABLE {
	MARGIN-BOTTOM: 0px;
            font-family: Arial, Helvetica, sans-serif;
        }
        .style1
        {
            width: 100%;
            height: 260px;
        }
        .style2
        {
        }
        .style3
        {
            width: 100%;
        }
        .style5
        {
            text-align: left;
        }
        .style6
        {
            width: 461px;
        }
        .style8
        {
            text-align: center;
        }
        .style9
        {
            text-align: right;
            width: 161px;
        }
        .style10
        {
            width: 966px;
            text-align: right;
        }
        .style11
        {
            width: 461px;
            text-align: left;
        }
        .style12
        {
            text-align: right;
            width: 41px;
        }
        .style13
        {
            width: 41px;
        }
        .style14
        {
            text-align: right;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"/>
       
   
     <!--   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>-->
                <table cellpadding="0" cellspacing="0" class="style1">
                    <tr>
                        <td class="style8" colspan="4">
                            <asp:Label ID="Receipt_Date" runat="server" style="display:none"></asp:Label>
                            <asp:Label ID="Receipt_run" runat="server" style="display:none"></asp:Label>
                            <asp:Label ID="Receipt_run_last" runat="server" style="display:none"></asp:Label>
                            <asp:Label ID="Label10" runat="server" 
                                style="font-size: medium; font-weight: 700"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style8" colspan="4">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style8" colspan="4">
                            <asp:Label ID="Label11" runat="server" 
                                style="font-size: small; font-weight: 700"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style11">
&nbsp;</td>
                        <td class="style12">
                            &nbsp;</td>
                        <td class="style14">
                            <strong>ประจำเดือน :</strong><asp:TextBox ID="Month" runat="server" 
                                Width="80px"></asp:TextBox>
&nbsp;<strong>วันที่ออกใบเสร็จ :</strong><asp:TextBox ID="Rec_Date" runat="server" BackColor="#CCCCCC" ReadOnly="True" 
                                Width="80px" style="margin-left: 0px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <asp:Label ID="Label9" runat="server"></asp:Label>
                        </td>
                        <td class="style6" style="text-align: left">
                            <asp:Label ID="fa_code" runat="server"></asp:Label>
&nbsp;
                            <asp:Label ID="fa_name" runat="server"></asp:Label>
                        </td>
                        <td class="style13">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style6" style="text-align: left">
                            <asp:TextBox ID="TextBox1" runat="server" style="display:none"></asp:TextBox>
                            <strong><asp:Label ID="st_id" runat="server" style="display:none"></asp:Label>
                            </strong>
                        </td>
                        <td class="style13">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <strong>รหัสนักเรียน :</strong></td>
                        <td class="style6">
                            <asp:Label ID="st_code" runat="server"></asp:Label>
                        &nbsp;
                            <asp:Label ID="st_name" runat="server"></asp:Label>
                        </td>
                        <td class="style13">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style6">
                            <asp:TextBox ID="Max" runat="server" style="display:none"></asp:TextBox>
                        </td>
                        <td class="style13">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <strong>ที่อยู่ :</strong></td>
                        <td class="style6">
                            <asp:Label ID="regisdate" runat="server" style="display:none"></asp:Label>
                            <textarea id="TextArea1" cols="20" name="S1" rows="2" runat="server" 
                                readonly="readonly"></textarea></td>
                        <td class="style13">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style9">
                            &nbsp;</td>
                        <td class="style6">
                            &nbsp;</td>
                        <td class="style13">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <strong>หมายเหตุ :</strong></td>
                        <td class="style6">
                            <textarea id="TextArea2" cols="20" name="S2" rows="2" runat="server" 
                                readonly="readonly"></textarea></td>
                        <td class="style13">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style8">
                            &nbsp;</td>
                        <td class="style6">
                            &nbsp;</td>
                        <td class="style13">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style2" colspan="4">
                            <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
                                border="1" AutoGenerateColumns="False" 
                                GridLines="None" onrowdatabound="GridView1_RowDataBound" Width="100%" 
                                onselectedindexchanged="GridView1_SelectedIndexChanged">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                                              <HeaderTemplate>
                                                  ลำดับ
                                              </HeaderTemplate>
                                              <ItemTemplate>
                                                  <%#Container.DataItemIndex+1 %>
                                              </ItemTemplate>
                                              <ItemStyle HorizontalAlign="Center" />
                                          </asp:TemplateField>
                                    <asp:TemplateField HeaderText="id วิชา" Visible="False">
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server" Text ='<%# Eval("cls_reg_id") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="ชื่อวิชา">
                                        <ItemTemplate>
                                            <asp:Label ID="Label3" runat="server" Text ='<%# Eval("cls_name") %>'></asp:Label>
                                        </ItemTemplate>
                                          <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="left" />
                                    </asp:TemplateField>
                                      <asp:TemplateField HeaderText="ครูสอน">
                                      <ItemTemplate>
                                        <asp:Label ID="emp_code" runat="server"  Text ='<%# Eval("emp_name") %>'
                                           ></asp:Label>
                                    </ItemTemplate>
                                      </asp:TemplateField>
                                      <asp:TemplateField HeaderText="วัน">
                                        <ItemTemplate>
                                            <asp:Label ID="st_day" runat="server"  Text ='<%# Eval("emp_cls_day") %>'></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="left" />
                                    </asp:TemplateField>
                                      <asp:TemplateField HeaderText="เวลาเริ่ม">
                                        <ItemTemplate>
                                            <asp:Label ID="st_start" runat="server"  Text ='<%# Eval("emp_cls_start") %>'></asp:Label>
                                        </ItemTemplate>
                                          <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="center" />
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="เวลาสิ้นสุด">
                                        <ItemTemplate>
                                            <asp:Label ID="st_end" runat="server"  Text ='<%# Eval("emp_cls_end") %>'></asp:Label>
                                        </ItemTemplate>
                                          <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="center" />
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="คอร์ส(คาบ)">
                                        <ItemTemplate>
                                            <asp:Label ID="course" runat="server" Text='<%# Eval("cls_course_time") %>' ></asp:Label>
                                        </ItemTemplate>
                                           <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="ค่าเรียน">
                                        <ItemTemplate>
                                            <asp:Label ID="Label4" runat="server"  Text='<%# string.Format("{0:0,0.00}", Eval("cls_course_amt")) %>' ></asp:Label>
                                        </ItemTemplate>
                                          <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="right" />
                                    </asp:TemplateField>
                                   
                                    <asp:TemplateField HeaderText="cls_course_no" Visible="False">
                                        <ItemTemplate>
                                            <asp:Label ID="Label6" runat="server" Text ='<%# Eval("cls_course_no") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    
                                     <asp:CommandField ButtonType="Image" HeaderText="แก้ไข" 
                                SelectImageUrl="~/Pages/images/icon_15.gif" SelectText="" 
                                ShowSelectButton="True" />
                                  
                                </Columns>
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EFF3FB" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                <SortedDescendingHeaderStyle BackColor="#4870BE" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2" colspan="4">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style2" colspan="4">
                            <table cellpadding="0" cellspacing="0" class="style3">
                                <tr>
                                    <td class="style5">
                                        &nbsp;</td>
                                    <td class="style10">
                                        <strong>ยอดรวมค่าเรียน :</strong></td>
                                    <td class="style5">
                                        <asp:Label ID="Label8" runat="server" style="text-align: left"></asp:Label>
&nbsp; <strong>บาท</strong></td>
                                </tr>
                                <tr>
                                    <td class="style5">
                                        &nbsp;</td>
                                    <td class="style10">
                                        &nbsp;</td>
                                    <td class="style5">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style5">
                                        &nbsp;</td>
                                    <td class="style10">
                                        <strong>ประเภทส่วนลด :</strong></td>
                                    <td class="style5">
                                        <asp:Label ID="Label12" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style5">
                                        &nbsp;</td>
                                    <td class="style10">
                                        &nbsp;</td>
                                    <td class="style5">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style5">
                                        &nbsp;</td>
                                    <td class="style10">
                                        <strong>ส่วนลด :</strong><asp:Label ID="Label13" runat="server"></asp:Label>
                                        <strong>&nbsp;</strong>% <strong>:</strong>&nbsp; </td>
                                    <td class="style5">
                                        <asp:Label ID="Label14" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style5">
                                        &nbsp;</td>
                                    <td class="style10">
                                        &nbsp;</td>
                                    <td class="style5">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style5">
                                        &nbsp;</td>
                                    <td class="style10">
                                        <strong>รวมเงิน :</strong></td>
                                    <td class="style5">
                                        <asp:Label ID="Label15" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style5">
                                        &nbsp;</td>
                                    <td class="style10">
                                        <asp:Label ID="bahtTH" runat="server" style="text-align: left"></asp:Label>
                                    </td>
                                    <td class="style5">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style5">
                                        &nbsp;</td>
                                    <td class="style10">
                                        &nbsp;</td>
                                    <td class="style5">
                                        <asp:Button ID="Button1" runat="server" Text="พิมพ์" onclick="Button1_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2" colspan="4">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style2" colspan="4">
                            &nbsp;</td>
                    </tr>
                </table>
         <!--   </ContentTemplate>
        </asp:UpdatePanel>-->
    
    </div>
    </form>
</body>
</html>
